<template>
  <view class="page"> 
    <view class="content">
      <view class="index-logo">
        <!-- <img :src="require('../img/logozhanwei.png')" />  -->
      </view>
      <view class="index-title">
        <nut-avatar> <img src="https://img12.360buyimg.com/imagetools/jfs/t1/196430/38/8105/14329/60c806a4Ed506298a/e6de9fb7b8490f38.png" /> </nut-avatar>
      </view>
    </view>
  </view>
</template>

<script lang="ts" setup>
import { style, top, width, margin, height, isEnd, toast, isStart, left } from "@/utils/utils";
import { userInfoStore } from "@/stores/userInfoStore";
import { appInfoStore } from "@/stores/appInfo";
import { getUserProfileSync, openEcShopSync, ttLogin, openGoodsDetail } from "@/libs/tiktok/runtime";

import { onBeforeMount, ref } from "vue";
import {} from "@/api";
import Taro from "@tarojs/taro";
const props = defineProps<{
  isShowModal: boolean;
}>();

const emit = defineEmits<{
  (e: "navigate", page: string): void;
  (e: "execute", params: { type: string; [key: string]: any }): void;
  (e: "openModal", modalType: string, params: any): void;
}>();

const runDev = ref(process.env.TARO_ENV);

/*点击按钮*/
const handleBtnClick = async e => {
  let type = e.currentTarget.dataset.type;
  try {
    fn[type](e);
  } catch (e) {
    if (type) {
      openModal(type, e);
    }
  } finally {
  }
};

/*执行按钮方法*/
const fn = {};

const openModal = (type, params) => {
  emit("openModal", type, params);
};

const navigate = page => {
  emit("navigate", page);
};

const closeModal = () => {
  emit("execute", {
    type: "closeModal",
  });
};

const initPage = () => {
  console.log("initPage");
};

//组件初始化
onBeforeMount(() => {
  initPage();
});

defineExpose({
  initPage,
});
</script>

<style lang="less">
.content {
}
</style>
